"use strict";BX.namespace("BX.Rest.Markeplace.Installed");BX.Rest.Markeplace.Installed={init:function(t){if(typeof t==="object"&&t){this.ajaxPath=t.ajaxPath||"";this.filterId=t.filterId||""}},initEvents:function(){BX.addCustomEvent("BX.Main.Filter:apply",this.onApplyFilter)},onApplyFilter:function(t,e,a,l,i){if(t!==BX.Rest.Markeplace.Installed.filterId)return;i.autoResolve=false;var s=new BX.Loader({target:BX("mp-installed-block"),offset:{top:"150px"}});s.show();BX.ajax({method:"POST",dataType:"html",url:BX.Rest.Markeplace.Installed.ajaxPath,data:{action:"setFilter",sessid:BX.bitrix_sessid()},onsuccess:BX.proxy(function(t){BX("mp-installed-block").innerHTML=t;s.hide();l.fulfill()},this),onfailure:function(){l.reject()}})}};